package cn.wyz.basic.service;

import cn.wyz.basic.query.BaseQuery;
import cn.wyz.basic.util.PlusQueryList;

import java.util.List;

/**
 * 业务执行,除了老五样还剩一个分页+高级查询
 *
 * @author Wuyuz
 * @date 2022/6/1 13:16
 */

public interface IBaseService<T> {
    List<T> selectAll();

    T selectById(Long id);

    void deleteById(Long id);

    void insert(T t);

    void update(T t);

    //先传入封装好的query对象(有分页信息),
    PlusQueryList<T> queryData(BaseQuery query);

    //批量删除
    void patchDelete(List<Long> idList);
    
}
